<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>系统错误</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .error-container {
            max-width: 800px;
            margin: 100px auto;
            padding: 20px;
            text-align: center;
        }
        .error-icon {
            font-size: 72px;
            color: #dc3545;
            margin-bottom: 20px;
        }
        .error-details {
            text-align: left;
            margin-top: 30px;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <div class="error-container">
        <div class="error-icon">
            <i class="bi bi-exclamation-triangle-fill"></i>
        </div>
        <h1 class="mb-4">系统错误</h1>
        <p class="lead" th:text="${message}">错误信息</p>
        <p class="text-muted" th:text="${url}">请求URL</p>
        
        <div class="error-details" th:if="${stackTrace != null}">
            <h5>错误详情：</h5>
            <pre th:text="${stackTrace}"></pre>
        </div>
        
        <div class="mt-4">
            <a href="/" class="btn btn-primary">返回首页</a>
            <button class="btn btn-secondary" onclick="history.back()">返回上一页</button>
        </div>
    </div>
    
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
</body>
</html> 